const couponRouter = [{
        path: 'couponList',
        name: 'couponList',
        // component: resolve => require(['views/coupon/list/publishTel.vue'], resolve),
        component: resolve => require(['views/coupon/list/index.vue'], resolve),
        children: [{
                path: 'publish',
                name: 'couponListPublish',
                component: resolve => require(['views/coupon/list/publish.vue'], resolve)
            },
            {
                path: 'detail',
                name: 'couponListDetail',
                component: resolve => require(['views/coupon/list/detail.vue'], resolve)
            }
        ]
    },
    {
        path: 'couponRecord',
        name: 'couponRecord',
        component: resolve => require(['views/coupon/record/index.vue'], resolve),
        title: '使用记录'
    },
    {
        path: 'couponAdd',
        component: resolve => require(['views/coupon/add/index.vue'], resolve),
        title: '创建卡券',
        children: [{
                path: '',
                name: 'couponAdd',
                component: resolve => require(['views/coupon/add/choiceType.vue'], resolve)
            },
            {
                path: 'raiseRates',
                name: 'raiseRates',
                component: resolve => require(['views/coupon/add/raiseRates.vue'], resolve)
            },
            {
                path: 'experienceMoney',
                name: 'experienceMoney',
                component: resolve => require(['views/coupon/add/experienceMoney.vue'], resolve)
            },
            {
                path: 'experienceCoupon',
                name: 'experienceCoupon',
                component: resolve => require(['views/coupon/add/experienceCoupon.vue'], resolve)
            },
            {
                path: 'experienceCouponFinish',
                name: 'experienceCouponFinish',
                component: resolve => require(['views/coupon/add/experienceCouponFinish.vue'], resolve)
            },
            {
                path: 'voucherCoupon',
                name: 'voucherCoupon',
                component: resolve => require(['views/coupon/add/voucherCoupon.vue'], resolve)
            }
        ]
    }
]

export {
    couponRouter
}